openshift/os: update release-4.22 ci-operator config for build-args changes#81971
openshift/os: update release-4.22 ci-operator config for build-args changes#81971aaradhak wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe OpenShift 4.22 OS release configuration adds image metadata build arguments and expands the ChangesOpenShift 4.22 OS release
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aaradhak, Rolv-Apneseth The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…hanges Backport of openshift#78212 for the release-4.22 branch. In openshift/os#1946, the Containerfile changes from a hardcoded FROM image to using `ARG IMAGE_FROM`. It also adds a `generate-labels` script that needs IMAGE_NAME and IMAGE_CPE to produce labels.json and OCI security labels for Clair scanning. Additionally, STREAM_CLASS is needed so the io.openshift.os.streamclass label is set on the built images. Since ci-operator doesn't support build-args files, we need to: 1. Add `${IMAGE_FROM}` to the `as` list so ci-operator knows to replace `FROM ${IMAGE_FROM}` with the rhel-coreos-base image. 2. Pass IMAGE_NAME, IMAGE_CPE, and STREAM_CLASS as explicit build args. Both the old FROM value and `${IMAGE_FROM}` are in the `as` list so that CI works regardless of which PR merges first (this one or openshift#1946).
|
New changes are detected. LGTM label has been removed. |
|
[REHEARSALNOTIFIER]
Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
@aaradhak: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Backport of #78212 for the release-4.22 branch.
In openshift/os#1946, we're backporting the labels.json and OCI security labels changes which require the Containerfile to use ARG IMAGE_FROM=overridden instead of a hardcoded FROM and to require IMAGE_NAME/IMAGE_CPE build args for RHCOS builds.
Since ci-operator doesn't support build-args files, we need to:
Add
${IMAGE_FROM}to theaslist so ci-operator knows toreplace
FROM ${IMAGE_FROM}with the rhel-coreos-base image.Pass IMAGE_NAME and IMAGE_CPE as explicit build args.
Summary by CodeRabbit
Updates the
openshift/osCI configuration for release 4.22 to support the revised Containerfile build flow:IMAGE_NAME,IMAGE_CPE, andSTREAM_CLASSbuild arguments for RHCOS image builds.rhel-coreos-baseinput to resolve its image source through${IMAGE_FROM}while retaining the existing upstream reference.